import javaCourse from '../images/javaCourse.jpeg'
import {REFRESH_SERIAL} from '../constant/action-type'

const initState = {
  id: 1,
  title: 'JAVA的基础课程系列',
  description: `#### 学习目标
* 能够熟练掌握 Markdown 语法，并能够使用 Markdown 来写博客。
![](https://s3.cn-north-1.amazonaws.com.cn/tws-upload/images/temp/1557473553234-cf0f27f2-8fd3-4d86-a521-c35220d82145.png)
#### 学习内容
- 各种header, 如\`#\`, \`##\`, \`###\`, 等等，以及\`=====\`, \`------\`
- 文字修饰：\`**\`, \`__\`
- 分隔符 \`------\`

#### 资源与工具

- markdown 编辑器，推荐使用[typora](http://www.typora.io/)
- [为什么要用Markdown写作](https://zhuanlan.zhihu.com/p/22755240)
- [《简书》 提供的 markdown 新手指南](http://www.jianshu.com/p/q81RER)
- 免费的markdown在线预览及示例：<http://dillinger.io/>
`,
  isAllVisible: false,
  isPublic: true,
  creatorId: 1,
  user: {
    userName: '张三'
  },
  isRelease: true,
  coverUrl: '',
  createTime: '2019-05-03',
  organizationId: 11,
  videos: [
    {
      id: 1,
      title: 'Java集合练习讲解1',
      isPublic: true,
      creatorId: 2,
      user: {
        userName: '李四1'
      },
      coverUrl: '',
      url: 'https://s3.cn-north-1.amazonaws.com.cn/tws-courses-resource/system-introduction/%E6%88%90%E9%95%BF%E6%97%A5%E5%BF%97%E4%B8%AD%E5%85%B3%E6%B3%A8%E5%AD%A6%E5%91%98.mp4" type="video/mp4'
    }, {
      id: 2,
      title: 'java 异常处理讲解2',
      isPublic: true,
      creatorId: 2,
      user: {
        userName: '李四2'
      },
      coverUrl: javaCourse,
      url: ''
    }, {
      id: 3,
      title: 'java 系列视频3',
      isPublic: true,
      creatorId: 2,
      user: {
        userName: '李四3'
      },
      coverUrl: javaCourse,
      url: ''
    }, {
      id: 4,
      title: 'java 系列视频4',
      isPublic: true,
      creatorId: 2,
      user: {
        userName: '李四4'
      },
      coverUrl: javaCourse,
      url: ''
    },
    {
      id: 5,
      title: 'java 系列视频5',
      isPublic: true,
      creatorId: 2,
      user: {
        userName: '李四5'
      },
      coverUrl: javaCourse,
      url: ''
    },
    {
      id: 6,
      title: 'java 系列视频6',
      isPublic: true,
      creatorId: 2,
      user: {
        userName: '李四6'
      },
      coverUrl: javaCourse,
      url: ''
    },
    {
      id: 7,
      title: 'java 系列视频7',
      isPublic: true,
      creatorId: 2,
      user: {
        userName: '李四7'
      },
      coverUrl: javaCourse,
      url: ''
    },
    {
      id: 8,
      title: 'java 系列视频1',
      isPublic: true,
      creatorId: 2,
      user: {
        userName: '李四8'
      },
      coverUrl: javaCourse,
      url: ''
    },
    {
      id: 9,
      title: 'java 系列视频1',
      isPublic: true,
      creatorId: 2,
      user: {
        userName: '李四9'
      },
      coverUrl: javaCourse,
      url: ''
    }
  ],
  simpleVideoResponses: []
}

export default (state = initState, action) => {
  switch (action.type) {
    case REFRESH_SERIAL :
      return action.data
    default:
      return state
  }
}
